package com.fang.decorator;

import com.fang.decorator.bo.SubmitOrderBo;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description 装饰者模式
 * @date 2022/4/23 2:56 下午
 **/
public abstract class OrderDecorator extends OrderTradeComponent {

    private OrderTradeComponent orderTradeComponent;

    public OrderDecorator(OrderTradeComponent component) {
        this.orderTradeComponent = component;
    }

    @Override
    public void convertSubmitOrder(SubmitOrderBo bo) {
        orderTradeComponent.convertSubmitOrder(bo);
    }
}
